<?php /*a:4:{s:55:"/home/pirate/wx_manager/app/admin/view/index/index.html";i:1606456864;s:35:"../app/common/admin/lib/header.html";i:1622026634;s:36:"../app/common/admin/lib/sidebar.html";i:1606282475;s:35:"../app/common/admin/lib/footer.html";i:1620273611;}*/ ?>
<?php
use app\common\model\OpenCard;
use app\common\model\User;
?>
<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title><?php if($title): ?><?php echo htmlentities($title); ?>-<?php endif; ?>微信后台管理</title>
  <base href="<?php echo htmlentities(SITE_URL); ?>/"></base>
  <script type="text/javascript">
    var siteUrl = "<?php echo htmlentities(SITE_URL); ?>";
    var uploadUrl = "<?php echo htmlentities(UPLOAD_URL); ?>";
    var isAdmin = 1;
  </script>
  
  <link rel="stylesheet" type="text/css" href="./static/css/base.css" />
  <link rel="stylesheet" type="text/css" href="./static/css/admin/admin.css" />
  <link rel="stylesheet" href="/static/lib/layui-v2.5.4/css/layui.css" media="all">

  <?php if(in_array($module, explode(',', ',autoreply,appmsg,appmenu,appmenu_stat,key_stat,message,user'))): ?>
  <link rel="stylesheet" type="text/css" href="./static/css/admin/weixin.css" />
  <?php endif; ?>

  <script type="text/javascript" src="./static/js/jquery-1.7.1.min.js"></script>
  <script type="text/javascript" src="./static/js/jqueryui/1.8.11/jquery-ui.js"></script>
  <script type="text/javascript" src="./static/js/common.js"></script>
  <script type="text/javascript" src="./static/js/admin/admin.js"></script>
  <script type="text/javascript" src="./static/js/qDialog.js"></script>
  <script type="text/javascript" src="./static/js/zclip/jquery.zclip.min.js"></script>
  <script type="text/javascript" src="./static/js/zclip/ZeroClipboard.js"></script>
  <link rel="shortcut icon" href="./favicon.ico">
  <script src="/static/lib/layui-v2.5.4/layui.js?v=1.0.4" charset="utf-8"></script>
  <script src="/static/js/lay-config.js?v=1.0.4" charset="utf-8"></script>
  <link rel="stylesheet" href="/static//css/admin/weiboface.css" type="text/css" />
  <script type="text/javascript" src="/static//js/weiboface.js"></script>
  <!--[if IE 6]>
  <script src="./static/js/DD_belatedPNG_0.0.8a-min.js"></script>
  <script>
    DD_belatedPNG.fix('.logo a,.n-icon');
  </script>
  <![endif]-->
  <script>
  $(function(){
    // 页面高度
    var windowHeight = $(window).height();
    var domHeight = $(document).height();
    if (domHeight > windowHeight) {
      windowHeight = domHeight;
    }
    if ($(".inner-center").height() < windowHeight - 66) {
      $(".inner-center").css('min-height', windowHeight - 66);
      //$('body').css('overflow', 'hidden');
    }
    
    // 用户设置浮层
    $(".js_userSetBtn").click(function(e){
     e.preventDefault();
     e.stopPropagation();
     
     $(".js_cardSetBox").addClass('hidden');
     if ($(".js_userSetBox").hasClass('hidden')) {
       $(".js_userSetBox").removeClass('hidden');
     } else {
       $(".js_userSetBox").addClass('hidden');
     }
    });

      // 公众号下拉浮层
      $(".js_cardSetBtn").click(function(e){
          e.preventDefault();
          e.stopPropagation();

          $(".js_userSetBox").addClass('hidden');
          if ($(".js_cardSetBox").hasClass('hidden')) {
              $(".js_cardSetBox").removeClass('hidden');
          } else {
              $(".js_cardSetBox").addClass('hidden');
          }
      });

      // 表情初始化
      weiboFaceInit({
          //emotionUrl: "javascript:;",
          data: <?php echo config('emotion.weixin_emotions'); ?>
      });
  });
  </script>
</head>
<body>

<div id="wrap">
  <div class="header">
    <div class="htop clearfix">
      
      <h1 class="logo left" style="width:300px;"><a href="<?php echo url('admin'); ?>">微信后台管理 [<?php echo htmlentities($open_card_info['title']); ?>] </h1>
      <?php if($user_id > 0): ?>
        
        <div class="infotop">
          <a href="javascript:void(0);" class="userpic"></a>
          <span class="username-right js_userSetBtn">
            <a href="javascript:;" class="username"><?php echo User::display_name($user_id); ?></a>
            <span class="arrowtop">
              <i></i>
            </span>
          </span>
          <div class="poptop poptop-user js_userSetBox hidden" style="background:white;">
            <em>◆</em>
            <ul>
              
              <li><a href="<?php echo url('home'); ?>">回前台</a></li>
              <li><a href="<?php echo url('/admin/logout/index'); ?>">退出</a></li>
            </ul>
          </div>
        </div>
      <?php else: ?>
        <div class="htop-login right">
          <a href="<?php echo url('admin'); ?>">登录</a>
          <a href="<?php echo url('user/register'); ?>">注册</a>
        </div>
      <?php endif; ?>
    </div>
  </div>
  <div class="container clearfix">
    <div class="sidebar left">
  <ul class="sidenav">
  <!-- {an_dump($sidebar_menu_list)} -->
    <?php foreach($sidebar_menu_list as $k=>$v): ?>
    <li class="js_topMenu">
      <a href="javascript:;"><?php echo htmlentities($v['title']); ?><em></em></a>
      <?php if($v['children']): ?>
      <ul class="sidenav2" style="display:none;">
        <?php foreach($v['children'] as $k1=>$v1): ?>
        <li class="<?php echo htmlentities($v1['curr']); ?>">
          <a href="<?php echo htmlentities($v1['url']); ?>" data-qian="vmodule::<?php echo htmlentities($v1['module']); ?> vcontroller::<?php echo htmlentities($v1['controller']); ?> vaction::<?php echo htmlentities($v1['action']); ?> ___ module::<?php echo htmlentities($module); ?> controller::<?php echo htmlentities($controller); ?> action::<?php echo htmlentities($action); ?> __ vextra::<?php echo htmlentities($v1['extra_res']); ?> extra::<?php echo htmlentities($extra_res); ?> vcurr::<?php echo htmlentities($v1['curr']); ?>"><?php echo htmlentities($v1['title']); ?>&nbsp;&nbsp;<i style="display:none;" style="color:red">(0)</i></a>
        </li>
        <?php endforeach; ?>
      </ul>
      <?php endif; ?>
    </li>
    <?php endforeach; ?>
  </ul>
</div>
<script>
$(function(){
  $('.js_topMenu').click(function(e){
    
    var s=e.target || e.srcElement;
    if ($(s).parents(".sidenav2").size()>0) {
      return;
    }

    $(this).siblings().removeClass('curr')
    $(this).siblings().find('ul:visible').slideUp();
    if (!$(this).find('ul:visible').length) {
      $(this).find('ul').slideDown();
      $(this).addClass('curr');
    } else {
      $(this).find('ul').slideUp();
      $(this).removeClass('curr');
    }
  });
  
  $(".sidenav2 li").each(function(i, n){
    if ($(this).hasClass('curr')) {
      $(this).closest('ul').show();
      $(this).closest('.js_topMenu').addClass('curr');
    };
  });
});
</script>
    <div class="center">
      <div class="inner-center">
<div class="guidebox">
  <div class="guideone">
    <div class="titbar bgbule">
      <div class="position">
        <i class="arrow1"></i>
        <span>引导</span>
        <b class="arrow2"></b>
      </div>
    </div>
    <p class="ntc4">欢迎使用微信自助平台，您现在登录的是管理员界面。为确保能正常使用，</p>
    <p class="ntc4">请先登录公众平台&nbsp;<a href="http://mp.weixin.qq.com/" target="_blank">http://mp.weixin.qq.com/</a>，填写下面的接口信息。   <a href="javascript:void(0);" class="js_guideBtn">如何配置</a><i class="icon-doubt"></i></p>
    <div class="box">
      <p><span class="tit4">接口地址：</span><input id="js_urlCopy" class="notice-input" readonly type="text" value="<?php echo OpenCard::get_open_card_weixin_url($open_card_info['id']); ?>" />&nbsp;&nbsp;<a href="javascipt:void(0);" class="btn btn-success btn-xs js_setBtn" id="js_copyUrl" data-clipboard-target="js_urlCopy">复制</a></p>
      <p><span class="tit4">TOKEN：</span><input id="js_tokenCopy" class="notice-input" readonly type="text" value="<?php echo OpenCard::get_open_card_weixin_token($open_card_info['id']); ?>" />&nbsp;&nbsp;<a href="javascipt:void(0);" class="btn btn-success btn-xs js_setBtn" id="js_copyToken" data-clipboard-target="js_tokenCopy">复制</a></p>
    </div>
    <div class="js_guideBox" style="display:none;margin-top:20px;padding-bottom:4px;">
      <?php foreach($guide_list as $k=>$v): ?>
        <fieldset>
          <legend><span style="font-size: 19px;" class="badge badge-success"><?php echo htmlentities($k); ?></span> <?php echo htmlentities($v[0]); ?></legend>
          <div>
            <img src="<?php echo htmlentities($v[1]); ?>" style="max-width:630px;"/>
          </div>
        </fieldset>
        <br>
      <?php endforeach; ?>
    </div>
  <!--</div>{*-->
  <!--&lt;!&ndash;start:功能介绍&ndash;&gt;-->
  <!--<div class="guideone guidetwo">-->
    <!--<div class="titbar bggray">-->
      <!--<div class="position">-->
        <!--<i class="arrow1"></i>-->
        <!--<span>功能介绍</span>-->
        <!--<b class="arrow2"></b>-->
      <!--</div>-->
    <!--</div>-->
    <!--<div class="guide-item">-->
      <!--<h4>基本配置</h4>-->
      <!--<ul class="new-guide-list clearfix">-->
        <!--<li><a href="{AnUrl('autoreply/controller/1')}"><img src="../images/controller/icons-guide/icon-care.png" width="40" height="40"><p>关注时欢迎语</p></a></li>-->
        <!--<li><a href="{AnUrl('autoreply/controller/2')}"><img src="../images/controller/icons-guide/icon-reply.png" width="40" height="40"><p>默认回复</p></a></li>-->
        <!--<li><a href="{AnUrl('autoreply/controller/3')}"><img src="../images/controller/icons-guide/icon-keys.png" width="40" height="40"><p>关键词回复</p></a></li>-->
        <!--<li><a href="{AnUrl('appmenu/controller')}"><img src="../images/controller/icons-guide/icon-define.png" width="40" height="40"><p>自定义菜单</p></a></li>-->
        <!--<li><a href="{AnUrl('appmsg/controller')}"><img src="../images/controller/icons-guide/icon-source.png" width="40" height="40"><p>素材管理</p></a></li>-->
      <!--</ul>-->
    <!--</div>-->
    <!--<div class="guide-item">-->
      <!--<h4>微官网配置</h4>-->
      <!--<ul class="new-guide-list clearfix">-->
        <!--<li><a href="{AnUrl('tpl/controller?select_tpl=1')}"><img src="../images/controller/icons-guide/icon-module.png" width="40" height="40"><p>选择模板</p></a></li>-->
        <!--<li><a href="{AnUrl('setting/controller/index_setting')}"><img src="../images/controller/icons-guide/icon-set.png" width="40" height="40"><p>官网首页设置</p></a></li>-->
        <!--<li><a href="{AnUrl('article/controller')}"><img src="../images/controller/icons-guide/icon-resource.png" width="40" height="40"><p>官网内容库</p></a></li>-->
        <!--<li><a href="{AnUrl('shortcut_menu/controller')}"><img src="../images/controller/icons-guide/icon-menu.png" width="40" height="40"><p>快捷菜单</p></a></li>-->
      <!--</ul>-->
    <!--</div>-->
    <!--<div class="guide-item">-->
      <!--<h4>营销策略</h4>-->
      <!--<ul class="new-guide-list clearfix">-->
        <!--<li><a href="{AnUrl('lottery/controller')}"><img src="../images/controller/icons-guide/icon-wheel.png" width="40" height="40"><p>大转盘</p></a></li>-->
        <!--<li><a href="{AnUrl('lottery/controller/scratch_card')}"><img src="../images/controller/icons-guide/icon-card.png" width="40" height="40"><p>刮刮卡</p></a></li>-->
      <!--</ul>-->
    <!--</div>-->
    <!--<div class="guide-item">-->
      <!--<h4>数据统计</h4>-->
      <!--<ul class="new-guide-list clearfix">-->
        <!--<li><a href="{AnUrl('subscribe_stat/controller')}"><img src="../images/controller/icons-guide/icon-count-care.png" width="45" height="40"><p>关注统计</p></a></li>-->
        <!--<li><a href="{AnUrl('message/controller')}"><img src="../images/controller/icons-guide/icon-count-msg.png" width="45" height="40"><p>留言统计</p></a></li>-->
        <!--<li><a href="{AnUrl('key_stat/controller')}"><img src="../images/controller/icons-guide/icon-count-key.png" width="45" height="40"><p>关键词统计</p></a></li>-->
        <!--<li><a href="{AnUrl('appmenu_stat/controller')}"><img src="../images/controller/icons-guide/icon-count-menu.png" width="45" height="40"><p>菜单点击统计</p></a></li>-->
      <!--</ul>-->
    <!--</div>-->
  <!--</div>-->
  <!--&lt;!&ndash;end:功能介绍&ndash;&gt;*}-->
</div><!--end .guidebox-->
<script>
$(function(){
  $('.js_guideBtn').click(function(){
    var innerText = $(this).text();
    if (innerText == '如何配置') {
      $(this).text('收起帮助');
    } else {
      $(this).text('如何配置');
    }
    
    if (!$('.js_guideBox:visible').length) {
      $('.js_guideBox').show();
    } else {
      $('.js_guideBox').hide();
    }
  });
  var clipUrl = new ZeroClipboard( document.getElementById("js_copyUrl"), {
    moviePath: "./static/js/zclip/ZeroClipboard.swf"
  } );
  clipUrl.on( 'complete', function(client, args) {
    showMsg("复制成功，复制内容为："+ args.text, 1);
  });
  var clipToken = new ZeroClipboard( document.getElementById("js_copyToken"), {
    moviePath: "./static/js/zclip/ZeroClipboard.swf"
  } );
  clipToken.on( 'complete', function(client, args) {
    showMsg("复制成功，复制内容为："+ args.text, 1);
  });
});
</script>
        </div>
      
    </div>
  </div>
      
      <div class="linkpop js_menuSetBox" style="display:none;">
          <div class="inner-linkpop">
      <span>
        <i class="arrowpop"></i>
        <b class="arrowpop2"></b>
      </span>
              <p class="options-list">
                  <!--<a class="js_menuIndexBtn" href="javascript:void(0);">关联到微官网</a>-->
                  <a class="js_menuLinkBtn" href="javascript:void(0);">跳转到网页</a>
                  <a class="js_menuTextBtn" href="javascript:void(0);">纯文字回复</a>
                  <a class="js_menuSingleBtn" href="javascript:void(0);">单条图文信息</a>
                  <a class="js_menuMultiBtn" href="javascript:void(0);">多条图文信息</a>
                  <a class="js_menuActivityBtn" href="javascript:void(0);">活动回复</a>
                  <!--{*<a class="js_menuImgBtn" href="javascript:void(0);">图片</a>-->
                  <!--<a class="js_menuVoiceBtn" href="javascript:void(0);">声音</a>-->
                  <!--<a class="js_menuCustomBtn" href="javascript:void(0);">智能回复</a>*}-->
              </p>
          </div>
      </div>

</div>
<span class="goTop go-top-box" style="display:none;"></span>
<script>
$(function(){
  // to-top
  goTopEx($(".goTop")[0]);
  // 点击其他地方隐藏弹层
  $(document).click(function(e){
    var s=e.target || e.srcElement;
    // 隐藏图文信息的编辑框
    if (!$(s).is('.js_showSetBoxBtn') && !$(s).is('.js_setBox') && $(s).parents(".js_setBox").size()<1) {
      $(".js_setBox").addClass('hidden');
    }
    
    // 隐藏个人设置弹框
    if (!$(s).is('.js_userSetBtn') && !$(s).is('.js_userSetBox') && $(s).parents(".js_userSetBox").size()<1) {
      $(".js_userSetBox").addClass('hidden');
    }
    
    // 隐藏个人设置弹框
    if (!$(s).is('.js_cardSetBtn') && !$(s).is('.js_cardSetBox') && $(s).parents(".js_cardSetBox").size()<1) {
      $(".js_cardSetBox").addClass('hidden');
    }
    
    // 隐藏菜单设置弹框
    if (!$(s).is('.js_setBtn') && !$(s).is('.js_menuSetBox') && $(s).parents(".js_menuSetBox").size()<1 && !$(s).is('.js_addNewContent') && $(s).parents(".js_addNewContent").size()<1) {
      $(".js_menuSetBox").hide();
    }
    
    // 隐藏表情弹框
    if (!$(s).is('#weiboface') && $(s).parents("#weiboface").size()<1 && !$(s).is('.js_faceBtn') && $(s).parents(".js_faceBtn").size()<1) {
      $("#weiboface").hide();
    }
    
    // 隐藏首页二维码
    if (!$(s).is('.js_mPreviewBtn') && $(s).parents(".js_mPreviewBtn").size()<1 && !$(s).is('.js_mPreviewBox') && $(s).parents(".js_mPreviewBox").size()<1) {
      $(".js_mPreviewBox").hide();
    }
    
    // 隐藏颜色框
    if (!$(s).is('.js_selectColorBtn') && $(s).parents(".js_selectColorBtn").size()<1 && !$(s).is('.js_selectColorBox') && $(s).parents(".js_selectColorBox").size()<1) {
      $(".js_selectColorBox").hide();
    }
    
    // 隐藏图标框
    if (!$(s).is('.js_selectIconBtn') && $(s).parents(".js_selectIconBtn").size()<1 && !$(s).is('.js_selectIconBox') && $(s).parents(".js_selectIconBox").size()<1) {
      $(".js_selectIconBox").hide();
    }
  });

    layui.use(['form', 'laypage'], function () {
        var form = layui.form
            , laypage = layui.laypage;

        laypage.render({ //分页
            elem: 'pages'
            , count: "<?php echo htmlentities($list['total']); ?>"
            , theme: '#FFB800'
            , limit: "<?php echo htmlentities($list['per_page']); ?>"
            , curr: "<?php echo htmlentities($list['current_page']); ?>"
            , jump:function(obj, first) {
                if (!first) {
                    //location.href = "?page="+obj.curr
                    var query = window.location.href;

                    var url = query.split("?")[0]+"?page="+obj.curr;
                    location.href = url;
                }
            }
        });
    });
});
</script>
</body>
</html>